a=int(input())
b=int(input())
print(f"""
{'Sum:':<12}{a+b:>6d}
{'Difference:':<12}{a-b:>6d}
{'Product:':<12}{a*b:>6d}
{'Average:':<12}{(a+b)/2:>9.2f}
{'Distance:':<12}{abs(a-b):>6d}
{'Minimum:':<12}{min(a,b):>6d}
{'Maximum:':<12}{max(a,b):>6d}
""")